﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SedCup.Code.View.Components
{
    public partial class Road : UserControl
    {
        public enum Content
        {
            NOTHING, H_ROAD, V_ROAD
        }

        public Road(Content content)
        {
            InitializeComponent();

            switch (content)
            {
                case Content.NOTHING:
                    this.pictureBox1.BackgroundImage = global::SedCup.Properties.Resources.empty;
                    break;
                case Content.H_ROAD:
                    this.pictureBox1.BackgroundImage = global::SedCup.Properties.Resources.road;
                    break;
                case Content.V_ROAD:
                    this.pictureBox1.BackgroundImage = global::SedCup.Properties.Resources.road_v;
                    break;
            }
        }
    }
}
